<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            /* 设置圆角边框 */
            /* border-radius: 50%; */
            animation-name: move;
            animation-duration: 2s;
            animation-timing-function: linear;
            /* 设置执行次数  number infinite无限次*/
            animation-iteration-count: infinite;
            /* 设置动画反向执行 alternate反向执行 normal不反向 */
            animation-direction: alternate;
        }

        /* 定义动画关键帧 */
        @keyframes move {

            /* 只需要开始动画和结束动画from开始to结束 */
            /* 需要中间过程 0%开始 10% 25% 50% 75% 100%结束 */
            /* from {
                
                transform: translateX(0px);

            }

            to {
                transform: translateX(200px);
            } */
             0%{
                transform: translateX(0px) rotate(0deg);
             }
             25%{
                transform: translateX(50px) rotate(90deg);
                background-color: azure;
                border-radius: 10px;
             }
             50%{
                transform: translateX(100px) rotate(180deg);
                background-color: orange;
                border-radius: 20px;
             }
             75%{
                transform: translateX(150px) rotate(270deg);
                background-color:chartreuse;
                border-radius: 35px;
             }
             100%{
                transform: translateX(200px) rotate(360deg);
                background-color: burlywood;
                border-radius: 50px;
             }
        }
        @keyframes scale {
            from{
                transform: none;
            }
            to{
                transform: scale(1.2);
            }
        }
        img{
            margin-top: 20px;
            animation: scale .2s linear infinite alternate;
        }
    </style>
</head>

<body>
    <div></div>
    <img width="150px" src="../Day01/音视频/1.webp" alt="">
</body>

</html>